<?php

require_once '../../includes/includes.php';

if (isset($_POST['counter'])) {

    $counter = $_POST['counter'];

    $table = 'shmekeri';
    $data = array('count' => $counter);

    $db->update($table, $data);

}